package com.itheima.jobs;

import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.JedisPool;


/**
 * @PackageName: com.itheima.jobs
 * @ClassName: ClearImgJob
 * @Author: LiuJunMeng
 * @Date: 2020/1/14 10:19
 * @Description: //TODO
 */
public class ClearImgJob {
    @Autowired
    private JedisPool jedisPool;

    public void clearImg() {
        /*//获取集合差值
        Set<String> sdiff =
                jedisPool.getResource().sdiff(RedisConstant.SETMEAL_PIC_RESOURCES, RedisConstant.SETMEAL_PIC_DB_RESOURCES);
        //遍历集合
        for (String pciName : sdiff) {
            //借助工具类,从七牛云中删除图片
            QiniuUtils.deleteFileFromQiniu(pciName);
            //在集合中删除图片
            jedisPool.getResource().srem(RedisConstant.SETMEAL_PIC_RESOURCES, pciName);
        }*/
        System.out.println(1111);
    }
}
